aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenPushIntTests]/[method:pushIntInstructionGeneratesIntGetInstruction(org.shedlang.compiler.te...
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-12-15 15:31:04 +0000
committerMichael Williamson <mike@zwobble.org>2023-12-15 15:31:04 +0000
commit549ec911f67484c875a09d4b5b8a9a4fc0ecc806 (patch)
tree1940d5adcdb5db95712d8edcbd924cd436b21fb3 /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenPushIntTests]/[method:pushIntInstructionGeneratesIntGetInstruction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
parenta2d7af1fdcc64f117d5db91761cb2610854e9e60 (diff)
Store Patio ints as pointers
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenPushIntTests]/[method:pushIntInstructionGeneratesIntGetInstruction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenPushIntTests]/[method:pushIntInstructionGeneratesIntGetInstruction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected11
1 files changed, 10 insertions, 1 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenPushIntTests]/[method:pushIntInstructionGeneratesIntGetInstruction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenPushIntTests]/[method:pushIntInstructionGeneratesIntGetInstruction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
index 3d1ab6f1..524c5179 100644
--- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenPushIntTests]/[method:pushIntInstructionGeneratesIntGetInstruction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
+++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenPushIntTests]/[method:pushIntInstructionGeneratesIntGetInstruction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
@@ -3,11 +3,20 @@ Compilation unit elements:
Locals:
* (val "int__0" int)
+ * (val "intPointer__0" data-ptr)
Instructions:
(
- (local-store (local "int__0") (int 42))
+ (alloc-heap (local "intPointer__0") (struct (int)))
+ (
+ memory-store
+ pointer=(local "intPointer__0")
+ layout=(struct (int))
+ offset=(0)
+ value=(int 42)
+ )
+ (data-ptr-to-int (local "int__0") (local "intPointer__0"))
)
Temporary stack: